#ifndef SUDOKUCONTEXTMENUBUTTON_H
#define SUDOKUCONTEXTMENUBUTTON_H

#include <QPushButton>
#include <QToolButton>

/**
  * This class is hack for Qt bug
  * https://bugreports.qt.nokia.com/browse/QTBUG-10427
  */
class SudokuContextMenuButton : public QToolButton
{
public:
    SudokuContextMenuButton(QWidget* parent = 0);
    //SudokuContextMenuButton(const QString& text, QWidget* parent = 0);

protected:
    void mouseReleaseEvent(QMouseEvent *event);

private:
    Q_DISABLE_COPY(SudokuContextMenuButton);
};

#endif // SUDOKUCONTEXTMENUBUTTON_H
